# Makefile

NAME	= ishell
SRCS	= ishell.c		\
		  fifo_files.c	\
		  options.c

OBJS	= $(SRCS:.c=.o)

CC		= gcc
RM		= rm -f
CP		= cp -f

CFLAGS	+= -Wall -Wextra -pedantic -ansi -O3

BIN_DIR	= bin/

$(NAME)	: $(OBJS)

all		: $(NAME)
		  $(CC) $(OBJS) -o $(NAME)
		  $(CP) $(NAME) $(BIN_DIR)

clean	:
		  $(RM) $(OBJS)

fclean	: clean
		  $(RM) $(NAME)
		  $(RM) $(BIN_DIR)$(NAME)

re		: fclean all
